#!/bin/bash
# 检查分数是否合格
read -p "Enter your score (0-100): " GRADE
if [[ $GRADE =~ ^[0-9]+$ ]]; then
    if (( GRADE >= 0 && GRADE <= 100 )); then
        if (( GRADE >= 60 )); then
            echo "$GRADE is Pass"
        else
            echo "$GRADE is Fail"
        fi
    else
        echo "$GRADE is Fail (Invalid score, must be between 0 and 100)"
    fi
else
    echo "$GRADE is Fail (Invalid input, please enter a number)"
fi
